<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>vue</title>
</head>
<script src="vue.js"></script>
<body>

    <div id="app">
        <h1 :style="{color:red,fontSize:size+'px'}">后端君</h1>
        <input type="range" v-model="size">
    </div>

<script>
    var app=new Vue({
        el:'#app',

        data:{
            red:'red',
            size:16
        }
    });

</script>
</body>
</html>